.class public Les/df;
.super Ljava/lang/Object;
.source "DuplicateAnalyzer.java"

# interfaces
.implements Les/ef;


# static fields
.field private static final m:Ljava/lang/String; = "df"


# instance fields
.field private volatile a:Z

.field private final b:I

.field private final c:Ljava/lang/String;

.field private final d:Ljava/util/concurrent/ExecutorService;

.field private final e:Les/xe$f;

.field private final f:Ljava/util/concurrent/BlockingQueue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/BlockingQueue<",
            "Les/we;",
            ">;"
        }
    .end annotation
.end field

.field private final g:Les/qf;

.field private final h:Ljava/util/concurrent/CyclicBarrier;

.field private final i:Ljava/util/concurrent/CyclicBarrier;

.field private j:Ljava/util/concurrent/CountDownLatch;

.field private k:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private final l:Ljava/lang/Runnable;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Les/xe$f;)V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Les/df$c;

    invoke-direct {v0, p0}, Les/df$c;-><init>(Les/df;)V

    iput-object v0, p0, Les/df;->l:Ljava/lang/Runnable;

    .line 3
    new-instance v0, Les/qf;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Les/qf;-><init>(I)V

    iput-object v0, p0, Les/df;->g:Les/qf;

    .line 4
    invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Les/df;->b:I

    .line 5
    iput-object p1, p0, Les/df;->c:Ljava/lang/String;

    .line 6
    iput-object p2, p0, Les/df;->e:Les/xe$f;

    .line 7
    new-instance p1, Ljava/util/concurrent/LinkedBlockingQueue;

    const/16 p2, 0x1000

    invoke-direct {p1, p2}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>(I)V

    iput-object p1, p0, Les/df;->f:Ljava/util/concurrent/BlockingQueue;

    .line 8
    new-instance p1, Ljava/util/concurrent/CyclicBarrier;

    iget p2, p0, Les/df;->b:I

    new-instance v0, Les/df$a;

    invoke-direct {v0, p0}, Les/df$a;-><init>(Les/df;)V

    invoke-direct {p1, p2, v0}, Ljava/util/concurrent/CyclicBarrier;-><init>(ILjava/lang/Runnable;)V

    iput-object p1, p0, Les/df;->h:Ljava/util/concurrent/CyclicBarrier;

    .line 9
    new-instance p1, Ljava/util/concurrent/CyclicBarrier;

    iget p2, p0, Les/df;->b:I

    new-instance v0, Les/df$b;

    invoke-direct {v0, p0}, Les/df$b;-><init>(Les/df;)V

    invoke-direct {p1, p2, v0}, Ljava/util/concurrent/CyclicBarrier;-><init>(ILjava/lang/Runnable;)V

    iput-object p1, p0, Les/df;->i:Ljava/util/concurrent/CyclicBarrier;

    .line 10
    new-instance p1, Les/av;

    const-string p2, "DupFileAnalyzer"

    invoke-direct {p1, p2}, Les/av;-><init>(Ljava/lang/String;)V

    .line 11
    iget p2, p0, Les/df;->b:I

    invoke-static {p2, p1}, Ljava/util/concurrent/Executors;->newFixedThreadPool(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;

    move-result-object p1

    iput-object p1, p0, Les/df;->d:Ljava/util/concurrent/ExecutorService;

    return-void
.end method

.method static synthetic a(Les/df;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/df;->d()V

    return-void
.end method

.method private b(Ljava/lang/String;)I
    .locals 0

    .line 3
    iget-object p1, p0, Les/df;->c:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D1(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    return p1

    .line 4
    :cond_0
    iget-object p1, p0, Les/df;->c:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->v1(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_5

    iget-object p1, p0, Les/df;->c:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->Q1(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    goto :goto_0

    .line 5
    :cond_1
    iget-object p1, p0, Les/df;->c:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->z2(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 p1, 0x3

    return p1

    .line 6
    :cond_2
    iget-object p1, p0, Les/df;->c:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->Q0(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_3

    const/4 p1, 0x4

    return p1

    .line 7
    :cond_3
    iget-object p1, p0, Les/df;->c:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->A0(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_4

    const/4 p1, 0x5

    return p1

    :cond_4
    const/4 p1, -0x1

    return p1

    :cond_5
    :goto_0
    const/4 p1, 0x2

    return p1
.end method

.method static synthetic b()Ljava/lang/String;
    .locals 1

    .line 2
    sget-object v0, Les/df;->m:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic b(Les/df;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/df;->c()V

    return-void
.end method

.method static synthetic c(Les/df;)Ljava/util/concurrent/CyclicBarrier;
    .locals 0

    .line 1
    iget-object p0, p0, Les/df;->h:Ljava/util/concurrent/CyclicBarrier;

    return-object p0
.end method

.method private c()V
    .locals 4

    .line 2
    iget-object v0, p0, Les/df;->g:Les/qf;

    invoke-virtual {v0}, Les/qf;->a()V

    .line 3
    iget-object v0, p0, Les/df;->j:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    .line 4
    iget-object v0, p0, Les/df;->e:Les/xe$f;

    if-eqz v0, :cond_0

    .line 5
    iget-object v1, p0, Les/df;->c:Ljava/lang/String;

    const/16 v2, 0xd

    const/4 v3, 0x0

    invoke-interface {v0, v1, v2, v3}, Les/xe$f;->a(Ljava/lang/String;IZ)V

    :cond_0
    return-void
.end method

.method private d()V
    .locals 2

    .line 2
    iget-object v0, p0, Les/df;->g:Les/qf;

    invoke-virtual {v0}, Les/nf;->c()V

    .line 3
    iget-object v0, p0, Les/df;->c:Ljava/lang/String;

    invoke-direct {p0, v0}, Les/df;->b(Ljava/lang/String;)I

    move-result v0

    .line 4
    iget-object v1, p0, Les/df;->g:Les/qf;

    invoke-virtual {v1, v0}, Les/qf;->b(I)V

    .line 5
    iget-object v0, p0, Les/df;->g:Les/qf;

    iget-object v1, p0, Les/df;->k:Ljava/util/List;

    invoke-virtual {v0, v1}, Les/qf;->b(Ljava/util/List;)V

    return-void
.end method

.method static synthetic d(Les/df;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Les/df;->a:Z

    return p0
.end method

.method static synthetic e(Les/df;)Ljava/util/concurrent/BlockingQueue;
    .locals 0

    .line 1
    iget-object p0, p0, Les/df;->f:Ljava/util/concurrent/BlockingQueue;

    return-object p0
.end method

.method static synthetic f(Les/df;)Les/qf;
    .locals 0

    .line 1
    iget-object p0, p0, Les/df;->g:Les/qf;

    return-object p0
.end method

.method static synthetic g(Les/df;)Ljava/util/concurrent/ExecutorService;
    .locals 0

    .line 1
    iget-object p0, p0, Les/df;->d:Ljava/util/concurrent/ExecutorService;

    return-object p0
.end method

.method static synthetic h(Les/df;)Ljava/util/concurrent/CyclicBarrier;
    .locals 0

    .line 1
    iget-object p0, p0, Les/df;->i:Ljava/util/concurrent/CyclicBarrier;

    return-object p0
.end method


# virtual methods
.method public a(Ljava/lang/String;)Les/jg;
    .locals 0

    .line 22
    :try_start_0
    iget-object p1, p0, Les/df;->j:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {p1}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 23
    invoke-virtual {p1}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 24
    :goto_0
    iget-object p1, p0, Les/df;->g:Les/qf;

    invoke-static {p1}, Les/kf;->a(Les/qf;)Les/jg;

    move-result-object p1

    return-object p1
.end method

.method public a(Ljava/lang/String;I)Les/tf;
    .locals 0

    .line 19
    :try_start_0
    iget-object p1, p0, Les/df;->j:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {p1}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 20
    invoke-virtual {p1}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 21
    :goto_0
    iget-object p1, p0, Les/df;->g:Les/qf;

    invoke-static {p1, p2}, Les/kf;->a(Les/nf;I)Les/tf;

    move-result-object p1

    return-object p1
.end method

.method public declared-synchronized a()V
    .locals 2

    monitor-enter p0

    .line 11
    :try_start_0
    sget-object v0, Les/df;->m:Ljava/lang/String;

    const-string v1, "\u53d6\u6d88\u91cd\u590d\u6587\u4ef6\u5206\u6790\uff01\uff01"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 12
    iget-object v0, p0, Les/df;->d:Ljava/util/concurrent/ExecutorService;

    invoke-interface {v0}, Ljava/util/concurrent/ExecutorService;->isShutdown()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 13
    iput-boolean v0, p0, Les/df;->a:Z

    .line 14
    iget-object v0, p0, Les/df;->g:Les/qf;

    invoke-virtual {v0}, Les/qf;->e()V

    .line 15
    iget-object v0, p0, Les/df;->d:Ljava/util/concurrent/ExecutorService;

    invoke-interface {v0}, Ljava/util/concurrent/ExecutorService;->shutdownNow()Ljava/util/List;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 16
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public a(Les/we;)V
    .locals 1

    .line 17
    :try_start_0
    iget-object v0, p0, Les/df;->f:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {v0, p1}, Ljava/util/concurrent/BlockingQueue;->put(Ljava/lang/Object;)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 18
    invoke-virtual {p1}, Ljava/lang/InterruptedException;->printStackTrace()V

    :goto_0
    return-void
.end method

.method public declared-synchronized a(Ljava/util/List;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    monitor-enter p0

    .line 2
    :try_start_0
    iput-object p1, p0, Les/df;->k:Ljava/util/List;

    .line 3
    new-instance p1, Ljava/util/concurrent/CountDownLatch;

    const/4 v0, 0x1

    invoke-direct {p1, v0}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V

    iput-object p1, p0, Les/df;->j:Ljava/util/concurrent/CountDownLatch;

    .line 4
    iget-object p1, p0, Les/df;->i:Ljava/util/concurrent/CyclicBarrier;

    invoke-virtual {p1}, Ljava/util/concurrent/CyclicBarrier;->reset()V

    .line 5
    iget-object p1, p0, Les/df;->h:Ljava/util/concurrent/CyclicBarrier;

    invoke-virtual {p1}, Ljava/util/concurrent/CyclicBarrier;->reset()V

    .line 6
    iput-boolean v0, p0, Les/df;->a:Z

    .line 7
    iget-object p1, p0, Les/df;->d:Ljava/util/concurrent/ExecutorService;

    invoke-interface {p1}, Ljava/util/concurrent/ExecutorService;->isShutdown()Z

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x0

    .line 8
    :goto_0
    iget v0, p0, Les/df;->b:I

    if-ge p1, v0, :cond_0

    .line 9
    iget-object v0, p0, Les/df;->d:Ljava/util/concurrent/ExecutorService;

    iget-object v1, p0, Les/df;->l:Ljava/lang/Runnable;

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    add-int/lit8 p1, p1, 0x1

    goto :goto_0

    .line 10
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method

.method public b(Ljava/util/List;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/hg;",
            ">;)Z"
        }
    .end annotation

    .line 8
    :try_start_0
    iget-object v0, p0, Les/df;->j:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 9
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 10
    :goto_0
    iget-object v0, p0, Les/df;->g:Les/qf;

    invoke-virtual {v0, p1}, Les/qf;->a(Ljava/util/List;)Z

    move-result p1

    return p1
.end method

.method public declared-synchronized stop()V
    .locals 2

    monitor-enter p0

    .line 1
    :try_start_0
    sget-object v0, Les/df;->m:Ljava/lang/String;

    const-string v1, "\u7ed3\u675f\u91cd\u590d\u6587\u4ef6\u5206\u6790..."

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    new-instance v0, Les/we;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Les/we;-><init>(Z)V

    invoke-virtual {p0, v0}, Les/df;->a(Les/we;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 3
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
